﻿<%@ page language="C#" autoeventwireup="true" inherits="own_users, App_Web_bgor3xka" %>

<%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>个人资料</title>
    <link href="../../skin/default/main.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">        
        function checkUser()
        {
            var num,name,identity,department
            num=document.getElementById("tbNum").value;
            name=document.getElementById("tbName").value;
            pwd=document.getElementById("tbPwd").value;
            identity=document.getElementById("ddlIdentity").value;
            department=document.getElementById("ddlDepartment").value;            
            if(name=="")
            {
                alert("用户名称不能为空！");
                return false;
            }
            if(pwd=="")
            {
                alert("用户密码不能为空！");
                return false;
            }            
            return true;
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="lbLocation" runat="server" Text="当前位置：个人资料" Font-Size="Large" Font-Bold="True"></asp:Label>
        <asp:ScriptManager id="sm" runat="server"></asp:ScriptManager>
        <asp:Panel ID="pnlUser" runat="server" BackColor="White" Width="99%" BorderStyle="Dotted" BorderWidth="1px">                
            <asp:UpdatePanel ID="upUser" runat="server">
                <ContentTemplate>
                <table width="100%">
                    <tr><td colspan="2" style="background-color:Blue;">
                        <asp:Label ID="lblTlt" runat="server" Text="个人资料查看修改" Font-Bold="True" ForeColor="White"></asp:Label>
                    </td></tr>
                    <tr><td colspan="2">
                        <asp:HiddenField ID="hfId" runat="server" />
                        用户编号：<asp:TextBox ID="tbNum" runat="server"></asp:TextBox></td></tr>
                    <tr><td>用户名称：<asp:TextBox ID="tbName"
                            runat="server"></asp:TextBox><td>
                                用户密码：<asp:TextBox ID="tbPwd"
                            runat="server"></asp:TextBox>
                    </td></tr>
                    <tr><td>用户身份：<asp:DropDownList ID="ddlIdentity" runat="server">
                        </asp:DropDownList></td><td>用户部门：<asp:DropDownList ID="ddlDepartment" runat="server">
                        </asp:DropDownList></td></tr>
                    <tr><td style="height: 26px" colspan="2">用户管理界面：<asp:CheckBox ID="ChkBox" runat="server" Checked="True"
                        Text="用户管理界面" />（取消进入“管理平台首页”）</td></tr>
                    <tr><td colspan="2" style="height: 26px" align="center">
                            <asp:Button ID="btnSbt" runat="server" Text="保存" OnClientClick="return checkUser()" OnClick="btnSbt_Click" />
                            <asp:Button ID="btnCancel" runat="server" OnClick="btnCancel_Click" Text="取消" /></td></tr>            
                </table>
                </ContentTemplate>                
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnSbt" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="btnCancel" EventName="Click" />
                </Triggers>
            </asp:UpdatePanel>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
